package com.ws.ssmzongjie3.service.impl;

import com.ws.ssmzongjie3.bean.Orders;
import com.ws.ssmzongjie3.bean.Route;
import com.ws.ssmzongjie3.mapper.RouteMapper;
import com.ws.ssmzongjie3.service.RouteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RouteServiceImpl implements RouteService {
    @Autowired
    private RouteMapper routeMapper;



    @Override
    public void insertRoute(Route route) {
        routeMapper.insertRoute(route);
    }

    @Override
    public void deleteRoute(Route route) {
        routeMapper.deleteRoute(route);
    }

    @Override
    public Route getRouteById(Route route) {
        return routeMapper.getRouteById(route);
    }

    @Override
    public void updateRoute(Route route) {
        routeMapper.updateRoute(route);
    }

    @Override
    public List<Route> listRoute(Route route) {
        return routeMapper.listRoute(route);
    }

    @Override
    public void updateRouteDelete(Route route) {
        routeMapper.updateRouteDelete(route);
    }

    @Override
    public List<Route> listRouteWithBusinessAndColumn(Route route) {
        return routeMapper.listRouteWithBusinessAndColumn(route);
    }

    @Override
    public List<Route> listRouteWithAttachments(Route route) {
        return routeMapper.listRouteWithAttachments(route);
    }

    @Override
    public List<Route> collectionDesc(Route route) {
        return routeMapper.collectionDesc(route);
    }

    @Override
    public List<Route> listRouteWithLikes(Route route, Integer userId, Boolean isCollected) {
        return routeMapper.listRouteWithLikes(route, userId, isCollected);
    }

    @Override
    public List<Route> listRouteWithCollections(Route route, Integer userId, Boolean isCollected) {
        return routeMapper.listRouteWithCollections(route, userId, isCollected);
    }



}
